package com.mbyte.easy.support.es.index;

/**
 * @ClassName: ElasticsearchIndex
 * @Description: to do
 * @Author: lxt 
 * @Date: 2019-10-14 10:55
 * @Version 1.0
 **/
public interface ElasticsearchIndex<T> {
    /**
     * 创建索引
     * @param clazz
     * @throws Exception
     */
    public void createIndex(Class<T> clazz) throws Exception;
    /**
     * 删除索引
     * @param clazz
     * @throws Exception
     */
    public void dropIndex(Class<T> clazz) throws Exception;

    /**
     * 索引是否存在
     * @param clazz
     * @throws Exception
     */
    public boolean exists(Class<T> clazz) throws Exception;

}
